import request from '@/utils/request.js'
import axios from 'axios'

export function queryMessageCount(userId) {
  return request({
    url: 'api/message/' + userId,
    method: 'get',
  })
}
export function queryMessageList(query) {
  return request({
    url: 'api/message/list',
    method: 'get',
    params: query
  })
}
export function MessageRead(data) { // 标记已读
  return request({
    url: 'api/message/read',
    method: 'post',
    data
  })
}